package com.hyh.textMessage.mqlistener;


import com.hyh.textMessage.constants.PayConstants;
import com.hyh.textMessage.util.NumberUtil;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class MqListener {

    @RabbitListener(queues = PayConstants.PAY_QUEUE_NUMBER)
    public void sendNumber(String number){
        NumberUtil.send(number,number);
    }
}
